home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Networking / SNMP / SNMP Development / MacSNMP Developer 1.0.2 / SNMP Interfaces / SNMPLAP.a < prev    next >
Encoding:
Text File  |  1993-06-15  |  6.7 KB  |  218 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        SNMPLAP.a
  3. ;
  4. ;    Contains:    Simple Network Management Protocol equates for 
  5. ;                Link Access Protocols
  6. ;    Copyright:    © 1992 by Apple Computer, Inc.  All rights reserved.
  7. ;
  8.  
  9. LAPMIBStats            RECORD    0,increment
  10. ifVersion            DS.L        1            ; Version of LinkStats we support
  11. ifDescr                DS.B        256            ; String with info about interface
  12. ifType                DS.L        1            ; <8> Change to a Long.  Code with type of interface
  13. ifMaxMTU            DS.L        1            ; <8> Change to a Long.  Largest size of IP datagram that can be tx/recv
  14. ifSpeed                DS.L        1            ; Bandwidth in bits/second
  15. ifPhysAddress        DS.B        32            ; Interface address
  16. ifAdminStatus        DS.L        1            ; <8> Change to a Long.  Desired state (1 = up, 2 = down, 3 = testing)
  17. ifOperStatus        DS.L        1            ; <8> Change to a Long.  Current state (1 = up, 2 = down, 3 = testing)
  18. ifLastChange        DS.L        1            ; SysTicks when interface entered current operation state
  19. ifInOctets            DS.L        1            ; Total nbr bytes received including framing chars
  20. ifInUcastPkts        DS.L        1            ; Nbr of unicast packets received
  21. ifInNUcastPkts        DS.L        1            ; Nbr of broad/multi cast packets received
  22. ifInDiscards        DS.L        1            ; Nbr of overwrites that occured (NOT USED)
  23. ifInErrors            DS.L        1            ; Nbr of pkts recv which contain error
  24. ifInUnknownProtos    DS.L        1            ; Nbr of pkts recv discarded cuz of unknown protocol
  25. ifOutOctets            DS.L        1            ; Total nbr bytes tx including framing chars
  26. ifOutUcastPkts        DS.L        1            ; Nbr of unicast packets tx
  27. ifOutNUcastPkts        DS.L        1            ; Nbr of broad/multi cast packets tx
  28. ifOutDiscards        DS.L        1            ; Nbr tx pkts discarded (NOT USED)
  29. ifOutErrors            DS.L        1            ; Nbr tx pkts not sent due to error
  30. ifOutQLen            DS.L        1            ; Current nbr of packets in output queue
  31. LAPMIBStatsSz        EQU            *
  32.                     ENDR
  33.  
  34. ; ifAdminStatus and ifOperStatus
  35. ifStatusUp            EQU        1
  36. ifStatusDown        EQU        2
  37. ifStatusTesting        EQU        3
  38.  
  39. ; IfTypes
  40. other                 EQU        1        ; none of the following
  41. regular1822            EQU        2
  42. hdh1822                EQU        3
  43. ddn_x25             EQU        4
  44. rfc877_x25             EQU        5
  45. ethernet_csmacd        EQU        6
  46. iso88023_csmacd     EQU        7
  47. iso88024_tokenBus    EQU        8
  48. iso88025_tokenRing     EQU        9
  49. iso88026_man         EQU        10
  50. starLan                EQU        11
  51. proteon_10Mbit         EQU        12
  52. proteon_80Mbit        EQU        13 
  53. hyperchannel         EQU        14
  54. fddi                EQU        15
  55. lapb                 EQU        16
  56. sdlc                EQU        17
  57. ds1                    EQU        18        ; T-1
  58. e1                    EQU        19         ; european equivalent of T-1
  59. basicISDN             EQU        20
  60. primaryISDN         EQU        21
  61. propPointToPointSerial EQU    22        ; proprietary serial
  62. ppp                    EQU        23
  63. softwareLoopback    EQU        24
  64. eon                    EQU        25        ; CLNP over IP
  65. ethernet_3Mbit        EQU        26
  66. nsip                EQU        27        ; XMS over IP
  67. slip                EQU        28        ; generic SLIP
  68. ultra                EQU        29        ; ULTRA technologies
  69. ds3                    EQU        30        ; T-3
  70. sip                    EQU        31        ; SMDS
  71. frame_relay            EQU        32
  72.  
  73. ;
  74. ;    EtherNet (802.3) SNMP equates
  75. ;
  76. Dot3Entry                    Record        0,increment
  77. dot3Version                    DS.l        1            ; Version of LapDot3 entry that we support
  78. dot3Index                    DS.l        1            ; ifIndex for this driver
  79. dot3InitializeMac            DS.l        1            ; Init status (1 = inited, 2 = uninited)
  80. dot3SubLayerStatus            DS.l        1            ; Op status of the MAC sublayer (1 = enabled, 2 = disabled)
  81. dot3MulticastReceiveStatus    DS.l        1            ; Multicast receive status (1 = enabled, 2 = disabled)
  82. dot3TxEnabled                DS.l        1            ; MAC frame tx state (1 = enabled, 2 = disabled)
  83. dot3TestTdrValue            DS.l        1            ; Time between TDR start/end
  84. Dot3EntrySz                    EQU            *            ; End of Dot3Entry
  85.                             ENDR
  86.  
  87. Dot3StatsEntry                        RECORD        0,increment
  88. dot3StatsVersion                    DS.l        1        ; Version number
  89. dot3StatsIndex                        DS.l        1        ; Same as ifIndex (to be left at zero)
  90. dot3StatsAlignmentErrors            DS.l        1
  91. dot3StatsFCSErrors                    DS.l        1
  92. dot3StatsSingleCollisionFrames        DS.l        1
  93. dot3StatsMultipleCollisionFrames    DS.l        1
  94. dot3StatsSQETestErrors                DS.l        1
  95. dot3StatsDeferredTransmissions        DS.l        1
  96. dot3StatsLateCollisions                DS.l        1
  97. dot3StatsExcessiveCollisions        DS.l        1
  98. dot3StatsInternalMacTransmitErrors    DS.l        1
  99. dot3StatsCarrierSenseErrors            DS.l        1
  100. dot3StatsExcessiveDeferrals            DS.l        1
  101. dot3StatsFrameTooLongs                DS.l        1
  102. dot3StatsInRangeLengthErrors        DS.l        1
  103. dot3StatsOutOfRangeLengthFields        DS.l        1
  104. dot3StatsInternalMacReceiveErrors    DS.l        1
  105. Dot3StatsEntrySz                    EQU            *
  106.                                     ENDR
  107.  
  108. Dot3CollEntry            RECORD            0,increment
  109. dot3CollVersion            DS.l    1        ; Version number
  110. dot3CollIndex            DS.l    1        ; Same as ifIndex (to be left at zero)
  111. dot3CollCount            DS.l    1
  112. dot3CollFrequencies        DS.l    1
  113. Dot3CollEntrySz            EQU        *
  114.                         ENDR
  115.  
  116. ;
  117. ;    TokenRing (802.5) SNMP equates
  118. ;
  119. Dot5Entry                Record        0,increment
  120. dot5Version                DS.l        1            ; Version of LapDot5 entry that we support
  121. dot5Index                DS.l        1            ; ifIndex for this driver
  122. dot5Commands            DS.l        1            ; always reads as no_op (1)
  123. dot5RingStatus            DS.l        1
  124. dot5RingState            DS.l        1
  125. dot5RingOpenStatus        DS.l        1
  126. dot5RingSpeed            DS.l        1
  127. dot5UpStream            DS.l        1
  128. dot5ActMonParticipate    DS.l        1
  129. dot5Functional            DS.l        1
  130. Dot5EntrySz                EQU            *            ; End of Dot5Entry
  131.                         ENDR
  132.  
  133. Dot5StatsEntry                    RECORD        0,increment        ; ••
  134. dot5StatsVersion                DS.l        1        ; Version number
  135. dot5StatsIndex                    DS.l        1        ; Same as ifIndex (to be left at zero)
  136. dot5StatsLineErrors                DS.l        1
  137. dot5StatsBurstErrors            DS.l        1
  138. dot5StatsACErrors                DS.l        1
  139. dot5StatsAbortTransErrors        DS.l        1
  140. dot5StatsInternalErrors            DS.l        1
  141. dot5StatsLostFrameErrors        DS.l        1
  142. dot5StatsReceiveCongestions        DS.l        1
  143. dot5StatsFrameCopiedErrors        DS.l        1
  144. dot5StatsTokenErrors            DS.l        1
  145. dot5StatsSoftErrors                DS.l        1
  146. dot5StatsHardErrors                DS.l        1
  147. dot5StatsSignalLoss                DS.l        1
  148. dot5StatsTransmitBeacons        DS.l        1
  149. dot5StatsRecoverys                DS.l        1
  150. dot5StatsLobeWires                DS.l        1
  151. dot5StatsRemoves                DS.l        1
  152. dot5StatsSingles                DS.l        1
  153. dot5StatsFreqErrors                DS.l        1
  154. Dot5StatsEntrySz                EQU            *
  155.                                 ENDR
  156.  
  157. Dot5TimerEntry                RECORD        0,increment        ; ••
  158. dot5TimerVersion            DS.l        1        ; Version number
  159. dot5TimerIndex                DS.l        1        ; Same as ifIndex (to be left at zero)
  160. dot5TimerReturnRepeat        DS.l        1
  161. dot5TimerHolding            DS.l        1
  162. dot5TimerQueuePDU            DS.l        1
  163. dot5TimerValidTransmit        DS.l        1
  164. dot5TimerNoToken            DS.l        1
  165. dot5TimerActiveMon            DS.l        1
  166. dot5TimerStandbyMon            DS.l        1
  167. dot5TimerErrorReport        DS.l        1
  168. dot5TimerBeaconTransmit        DS.l        1
  169. dot5TimerBeaconReceive        DS.l        1
  170. Dot5TimerEntrySz            EQU            *
  171.                             ENDR
  172.  
  173. ; dot3InitializeMac
  174. dot3initialized        EQU        1
  175. dot3uninitialized    EQU        2
  176.  
  177. ; dot3SubLayerStatus, dot3MulticastReceiveStatus
  178. dot3enabled            EQU        1
  179. dot3disabled        EQU        2
  180.  
  181. ; dot3TxEnabled, dot5ActMonParticipate
  182. dot_true            EQU        1
  183. dot_false            EQU        2
  184.  
  185. ; dot5Commands
  186. dot5no_op            EQU        1
  187. dot5open            EQU        2
  188. dot5reset            EQU        3
  189. dot5close            EQU        4
  190.  
  191. ; dot5RingState
  192. opened                EQU        1
  193. closed                EQU        2
  194. opening                EQU        3
  195. closing                EQU        4
  196. openFailure            EQU        5
  197. ringFailure            EQU        6
  198.  
  199. ; dot5RingOpenStatus
  200. noOpen                EQU        1
  201. badParam            EQU        2
  202. lobeFailed            EQU        3
  203. signalLoss            EQU        4
  204. insertionTimeout    EQU        5
  205. ringFailed            EQU        6
  206. beaconing            EQU        7
  207. duplicateMAC        EQU        8
  208. requestFailed        EQU        9
  209. removeReceived        EQU        10
  210. ringopen            EQU        11
  211.  
  212. ; dot5RingSpeed
  213. unknown                EQU        1
  214. oneMegabit            EQU        2
  215. fourMegabit            EQU        3
  216. sixteenMegabit        EQU        4
  217.  
  218. SNMPVersion            EQU            $100        ; used for LAPMIBStats, Dot3Stats, Dot3Entry